package leraning.url;

import leraning.utils.CallBack;
import leraning.utils.HttpUtils;

public class Download1 {
	public static void main(String[] args) {
		String srcPath = "http://www.ifeng.com";
		HttpUtils tils = new HttpUtils();
		System.out.println(new String(tils.downloadShortMsg(srcPath,
				new CallBack() {

					@Override
					public void callBack(String cb) {
						System.out.println(cb);
					}
				})));
	}

}
